package {
	import component.flit.form.FlitForm;
	
	import flash.display.StageAlign;
	import flash.display.StageScaleMode;
	
	import obecto.core.FLApplication;
	import obecto.event.FLEvent;

	[SWF(backgroundColor="0xCDCDCD")]
	public class FormSample extends FLApplication
	{
		private var flitForm : FlitForm;
		
		public function FormSample()
		{
			super();
			
			stage.frameRate = 35;
			stage.scaleMode = StageScaleMode.NO_SCALE;
			stage.align = StageAlign.TOP_LEFT;
			
			flitForm = new FlitForm();
			flitForm.addEventListener(FLEvent.CREATION_COMPLETE, handleFlitFormCreationComplete);
		}
		
		private function handleFlitFormCreationComplete(e : FLEvent) : void 
		{
			flitForm.x = 150;
			flitForm.y = 160;
			
			addChild(flitForm);
		}
		
	}
}
